#pragma once
#define LIST_INIT_SIZE 100
typedef int Status;
#define OK 1 
#define OVERFLOW -2
#define ERROR -1
#define MAXSIZE 100

typedef int ElemType;


typedef struct {
    ElemType *elem;
    int length;
}SqList;

int LocateElem(SqList L, ElemType e);
int GetElem(SqList L, int i, ElemType& e);
int IsEmpty(SqList L);
int GetLength(SqList L);
void ClearList(SqList& L);
void Destroy(SqList& L);
Status InitList_Sq(SqList& L);
Status ListInsert_Sq(SqList& L, int i, ElemType e);
Status ListDelete_Sq(SqList& L, int i);